package com.jxwifi.cloud.quickcleanserver.mycenter.model;


import com.jxwifi.cloud.quickcleanserver.app.UrlPool;
import com.jxwifi.cloud.quickcleanserver.okhttp.AuzHttp;
import com.jxwifi.cloud.quickcleanserver.okhttp.DataJson_Cb;
import com.jxwifi.cloud.quickcleanserver.okhttp.Params;

public class ContactTellImpl {

    public void initdata(Params params,final ContactTellListener onLoginListener) {
        AuzHttp.post(UrlPool.POST_UPDATE_PROFILE, params, new DataJson_Cb() {
            @Override
            public void onSuccess(int code, String data) {
                onLoginListener.ContactSuccess(code,data);
            }

            @Override
            public void onFailure(int errorCode, String msg) {
                onLoginListener.ContactFailure(msg);
            }
        }, "");
    }

    public interface ContactTellListener{

        void ContactSuccess(int code, String data);
        void ContactFailure(String msg);
    }

}
